﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mitasoft.Component.Models.Blog;

namespace mitasoft.Component.Services.Interfaces {

    public interface IBlogService {
        
        CategoryInfo AddCategory(string title);
        CategoryInfo[] GetCategories();

        PostInfo NewPost(string title, string description, DateTime createdDate, bool publish, string[] categories);
        PostInfo UpdatePost(int id, string title, string description, DateTime createdDate, bool publish, string[] categories);
        PostInfo GetPost(int id);
    }
}
